package me.landery.modules.sinco.service;

import me.landery.modules.sinco.domain.Vip;
import me.landery.modules.sinco.service.dto.CallQueryCriteria;
import me.landery.modules.sinco.service.dto.VipDto;
import me.landery.modules.sinco.service.dto.VipQueryCriteria;
import org.springframework.data.domain.Pageable;

import java.util.Map;

/**
 * @Author cc.w
 * @Date 2022/6/7 15:42
 * @Version 1.0
 */
public interface VipService {
    /**
     * 分页查询
     * @param criteria 条件
     * @param pageable 分页参数
     * @return /
     */
    Map<String,Object> queryAll(VipQueryCriteria criteria, Pageable pageable);

    VipDto findByUserID(Long userId);

    Vip save(Vip vip);

    void checkUserVip();

    void updateProfit(Long currentUserId, double v);
}
